package BasicModel.Element;

import java.util.LinkedList;

import BasicModel.Element.Component.Port;

public class InputSet {
	//String name;
	LinkedList<Port> inputPortSet;

	public InputSet() {
		inputPortSet = new LinkedList<Port>();
	}

	public void addPort(Port port) {
		inputPortSet.add(port);
	}
	public LinkedList<Port> getInputPortSet() {
		return inputPortSet;
	}
	
	public Port findPort(String portName){
		for(Port temp: inputPortSet){
			if(temp.getPortName().equals(portName))
				return temp;
		}
		return null;
	}
}
